package com.yumeko.springcloud.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: SpringCloud
 * @description:
 * @author: Zheng Hao
 * @create: 2020-03-07 03:43
 * @blame Android Team
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseData<T> {
    private Integer code;
    private String msg;
    private Integer count;
    private T Data;

    public ResponseData(Integer code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }
    public ResponseData(Integer code, String msg, T data) {
        super();
        this.code = code;
        this.msg = msg;
        this.Data =data;
    }
}
